const mongoose = require('mongoose')

mongoose.connect('mongodb://localhost/test')

const Cat = mongoose.model('Cat', {
	name:String
});

const kitty = new Cat({
	name : 'abc'
}) 

kitty.save().then(() => console.log('meow'),()=>console.log('err'))
